<extend name="Base/common"/>



<block name="body">
    <div class="index-content1" style="background-color: #ffffff;width: 1100px;padding: 20px;">
        <div class="breadcrumb" style="color: #999999">请注意红色星号部分为必填信息，否则将无法发布</div>
        <form class="form-horizontal ajax-form" role="form" method="post"  action="{:U('House/Index/dore_chuzu')}">

            <div class="form-group">
                <label for="style" class="col-sm-2 control-label" style="margin-right: 15px;">
                    <snap style="color: #ff0000">*</snap>
                    出租方式：</label>

                <label class="radio-inline">
                    <input  type="radio" name="style" id="type1" value="整租" checked>
                    整租
                </label>
                <label class="radio-inline">
                    <input type="radio" name="style" id="type2" value="合租">
                    合租
                </label>
            </div>

            <div class="form-group">
                <label for="position" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    区地址：</label>

                <div class="col-lg-2">
                    <div class="input-group">
                        <input type="text" name="position" id="position" class="form-control">

                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">区域
                                <span class="caret"></span></button>
                            <ul class="dropdown-menu pull-right">
                                <li><a href="#" onclick="set_position('江干区');">江干区</a></li>
                                <li><a href="#" onclick="set_position('西湖区');">西湖区</a></li>
                                <li><a href="#" onclick="set_position('滨江区');">滨江区</a></li>
                                <li><a href="#" onclick="set_position('拱墅区');">拱墅区</a></li>
                                <li><a href="#" onclick="set_position('上城区');">上城区</a></li>
                                <li><a href="#" onclick="set_position('下城区');">下城区</a></li>
                                <li><a href="#" onclick="set_position('余杭区');">余杭区</a></li>
                                <li><a href="#" onclick="set_position('富阳区');">富阳区</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>


            <div class="form-group">
                <label for="village" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    小区：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="village" id="village">
                </div>
            </div>
            <div class="form-group">
                <label for="type" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    户型：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="type" id="type">
                </div>
            </div>

            <div class="form-group">
                <label for="area" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    面积：</label>

                <div class="col-sm-2">
                    <input type="text" class="form-control" name="area" id="area" {:only(2)}>
                </div>
                <span class="pull-left" style="line-height: 36px;">平方米</span>
            </div>

            <div class="form-group">
                <label for="price" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    租金：</label>

                <div class="col-sm-2 pull-left">
                    <input type="text" class="form-control " name="price" id="price"{:only(2)}>
                </div>
                <span class="pull-left" style="line-height: 36px;">元/月</span>
            </div>



            <div class="form-group">
                <label for="Orientation" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    朝向：</label>

                <div class="col-lg-2">
                    <div class="input-group">
                        <input type="text" class="form-control" name="orientation" id="orientation">

                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">方向
                                <span class="caret"></span></button>
                            <ul class="dropdown-menu pull-right">
                                <li><a href="#" onclick="set_orientation('朝东');">朝东</a></li>
                                <li><a href="#" onclick="set_orientation('朝南');">朝南</a></li>
                                <li><a href="#" onclick="set_orientation('朝西');">朝西</a></li>
                                <li><a href="#" onclick="set_orientation('朝北');">朝北</a></li>


                            </ul>
                        </div>

                    </div>

                </div>
            </div>

            <div class="form-group">
                <label for="mold" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    房屋类型：</label>

                <div class="col-lg-2">
                    <div class="input-group">
                        <input type="text" class="form-control" name="mold" id="mold">

                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">方向
                                <span class="caret"></span></button>
                            <ul class="dropdown-menu pull-right">
                                <li><a href="#" onclick="set_mold('普通住宅');">普通住宅</a></li>
                                <li><a href="#" onclick="set_mold('公寓');">公寓</a></li>
                                <li><a href="#" onclick="set_mold('别墅');">别墅</a></li>
                                <li><a href="#" onclick="set_mold('平房');">平房</a></li>
                                <li><a href="#" onclick="set_mold('其他');">其他</a></li>


                            </ul>
                        </div>

                    </div>

                </div>
            </div>

            <div class="form-group">
                <label for="configure" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    配置：</label>

                <div class="col-sm-6">
                    <input type="text" class="form-control " name="configure" id="configure">
                </div>

            </div>


            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    标题：</label>

                <div class="col-sm-6">
                    <input type="text" class="form-control" name="title" id="title">
                </div>
            </div>

            <div class="form-group">
                <label for="description" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    描述：</label>

                <div class="col-sm-6">
                    <textarea class="form-control" rows="5" id="description" name="description"></textarea>

                </div>
            </div>


            <div class="form-group">
                <label for="nickname" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    联系人：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="nickname" id="nickname">
                </div>
                <span style="line-height: 33px;color:#E62D2D;font-size: 14px;">请务必填写真实姓名，方便与您联系</span>
            </div>

            <div class="form-group">
                <label for="phone" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    联系电话：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" id="phone" name="phone"{:only(1)}>
                </div>
                <span style="line-height: 33px;color:#E62D2D;font-size: 14px;">请核对号码，方便与您联系</span>
            </div>
            <div class="form-group">
                <label for="description" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    照片：</label>
                <iframe src="{:U('House/Index/uploadimage')}" width="800px"height="130px;"  frameborder="0"  marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" ></iframe>

                <input type="hidden" name="photo" id="photo">
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary" style="width: 80px;height: 40px;font-size:18px;">发布
                    </button>
                </div>
            </div>


        </form>


    </div>


    <script>
        function set_position(content) {
            $('#position').val(content);
        }
        function set_orientation(content) {
            $('#orientation').val(content);
        }
       function set_mold(content){

           $('#mold').val(content);

       }

    </script>

</block>



























